<!DOCTYPE html>
<html lang = "zh">
   <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <meta name="viewport" content="width=device-width, initial-scale=1" />
   <link rel="stylesheet" href="w3.css">
   <title> warmup </title>
   </head>

   <body>

      <div class="w3-container w3-center">

      <h1 id="question_title"> Warmup topic 1</h1>

      <hr>

      <div class="w3-card w3-pink" >
         <h3 id="question_content_zh" class="w3-opacity">
         如果有一次机会，你可以请到全世界任何人，你会邀请谁一起共进晚餐?
         </h3>
      </div>

      <hr>

      <div class="w3-panel" >
         <h3 id="question_content_en">
         Given the choice of anyone in the world, whom would you want as a dinner guest?
         </h3>
      </div>

      <div onclick="sample()" class="w3-button w3-block w3-gray">
         再来一条 (Another one)
      </div>

      </div>

      <script>
        let questions_en = '{"1": "Given the choice of anyone in the world, whom would you want as a dinner guest?",' + 
        '"2":"Would you like to be famous? In what way?",' +
        '"3":"Before making a telephone call, do you ever rehearse what you are going to say? Why?",' +
        '"4":"What would constitute a perfect day for you?",' +
        '"5":"When did you last sing to yourself? To someone else?",' +
        '"6":"If you were able to live to the age of 90 and retain either the mind or body of a 30-year-old for the last 60 years of your life, which would you want?",' +
        '"7":"Do you have a secret hunch about how you will die?",' +
        '"8":"Name three things you and your partner appear to have in common.",' +
        '"9":"For what in your life do you feel most grateful?",' +
        '"10":"If you could change anything about the way you were raised, what would it be?",' +
        '"11":"Take four minutes and tell your partner your life story in as much detail as possible.",' +
        '"12":"If you could wake up tomorrow having gained any one quality or ability, what would it be?",' +
        '"13":"If a crystal ball could tell you the truth about yourself, your life, the future or anything else, what would you want to know?",' +
        '"14":"Is there something that you have dreamed of doing for a long time? Why have not you done it?",' +
        '"15":"What is the greatest accomplishment of your life?",' +
        '"16":"What do you value most in a friendship?",' +
        '"17":"What is your most treasured memory?",' +
        '"18":"What is your most terrible memory?",' +
        '"19":"If you knew that in one year you would die suddenly, would you change anything about the way you are now living? Why?",' +
        '"20":"What does friendship mean to you?",' +
        '"21":"What roles do love and affection play in your life?",' +
        '"22":"Alternate sharing something you consider a positive characteristic of your partner. Share a total of five items.",' +
        '"23":"How close and warm is your family? Do you feel your childhood was happier than most other peoples?",' +
        '"24":"How do you feel about your relationship with your mother?",' +
        '"25":"Make three true *we* statements each. For instance, We are both in this room feeling ... ",' +
        '"26":"Complete this sentence: I wish I had someone with whom I could share ... ",' +
        '"27":"If you were going to become a close friend with your partner, please share what would be important for him or her to know.",' +
        '"28":"Tell your partner what you like about them; be very honest this time, saying things that you might not say to someone you have just met.",' +
        '"29":"Share with your partner an embarrassing moment in your life.",' +
        '"30":"When did you last cry in front of another person? By yourself?",' +
        '"31":"Tell your partner something that you like about them already.",' +
        '"32":"What, if anything, is too serious to be joked about?",' +
        '"33":"If you were to die this evening with no opportunity to communicate with anyone, what would you most regret not having told someone? Why have not you told them yet?",' +
        '"34":"Your house, containing everything you own, catches fire. After saving your loved ones and pets, you have time to safely make a final dash to save any one item. What would it be? Why?",' +
        '"35":"Of all the people in your family, whose death would you find most disturbing? Why?",' +
        '"36":"Share a personal problem and ask your partners advice on how he or she might handle it. Also, ask your partner to reflect back to you how you seem to be feeling about the problem you have chosen."}';

        let questions_zh = '{"1": "如果有一次机会，你可以请到全世界任何人，你会邀请谁一起共进晚餐?",' + 
        '"2":"你想出名吗？想怎样出名?",' +
        '"3":"打电话之前，你曾经斟酌预演过自己要说的话吗？为什么？",' +
        '"4":"对你来说，完美的一天包含哪些元素?",' +
        '"5":"你最后一次对自己唱歌是何时？对别人呢？",' +
        '"6":"如果你能活到90岁，后60年你愿保有30岁的头脑还是30岁的身体？",' +
        '"7":"你是否有过神秘的预感自己会如何死亡?",' +
        '"8":"列举三条你与对方的共同点",' +
        '"9":"你对生命中何人，何事或何物最心怀感激?",' +
        '"10":"如果能改变影响自己成长的任何一件事情，你会改变什么?",' +
        '"11":"花四分钟，向对方讲述一个你过往生活中的故事，越详细越好。",' +
        '"12":"如果明早醒来，你获得了一项新特质或超能力，你希望是?",' +
        '"13":"如果有个水晶球能告诉你一件关于自己过去，现在或未来任何事情的真相，你最想知道什么？",' +
        '"14":"你有什么梦想了很久但还没做的事情？为什么还没做？",' +
        '"15":"你生命中最有成就感的事情是什么",' +
        '"16":"你认为友谊中什么最宝贵?",' +
        '"17":"你最珍贵的记忆是什么?",' +
        '"18":"你最糟糕的回忆是什么?",' +
        '"19":"如果知道自己一年后会突然死亡，你最想改变目前哪种生活方式？为什么?",' +
        '"20":"友谊对你来说意味着什么?",' +
        '"21":"在你的生活中，爱和情扮演着怎样的角色?",' +
        '"22":"分享五样你认为对方性格中积极正面的特质",' +
        '"23":"你的家人关系有多紧密和温馨？你是否感觉童年比大部分人都要幸福?",' +
        '"24":"你如何看待自己与母亲的关系?",' +
        '"25":"每人用*我们*为开头陈述三件事实。比如，我们在这个房间里感觉到...",' +
        '"26":"补全这句话：我希望有一个人，我可以跟他分享。",' +
        '"27":"如果你跟对方成为好朋友，告诉一件对她或他来说重要的事。",' +
        '"28":"告诉对方你喜欢对方什么? 这次要非常诚实，直言你可能不会对刚认识的人说的话。",' +
        '"29":"告诉对方你生命中的一次尴尬经历。",' +
        '"30":"你最后一次在别人面前哭是什么时候? 偷偷哭呢?",' +
        '"31":"告诉对方你已经从喜欢上对方某一方面。",' +
        '"32":"你生命中有什么很严肃，不能拿来开玩笑的人或事? 如果有的话。",' +
        '"33":"如果生命马上终结，没有机会跟任何人交流。你最后悔有什么事情没有告诉某人？为什么现在还没告诉他们?",' +
        '"34":"如果你的房屋着火，你拥有的一切物品都在屋内，拯救了你爱的人和宠物之后，你还有时间再拿出来一件东西，你会选什么？为什么?",' +
        '"35":"你家庭中谁的死亡会让你最无法忍受，为何?",' +
        '"36":"分享一件私事，询问对方如遇此事，会如何处理？"}';


       let questions_en_ = JSON.parse(questions_en);
       let questions_zh_ = JSON.parse(questions_zh);

       function sample() {
           let random_id = Math.floor(Math.random() * 36) + 1;
           document.getElementById("question_title").innerHTML = "Warmup topic " + random_id;
           document.getElementById("question_content_en").innerHTML = questions_en_[random_id.toString()];
           document.getElementById("question_content_zh").innerHTML = questions_zh_[random_id.toString()];
       }

       sample();

      </script>
   </body>
</html>
